package ui.component
{
	import flash.filters.GlowFilter;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	import flash.text.TextFormatAlign;

	import util.TextStyle;

	public class Label extends TextField implements IUIComponent
	{
		public function Label(size:int = 12, color:uint = 0x000000, bold:Boolean = false, align:String = "left", border:Boolean = false, borderColor:uint = 0x1f1200)
		{
			selectable = false;
			defaultTextFormat = TextStyle.getTextFormat(color, size, bold, align);

			if(border)
			{
				filters = [TextStyle.getButtonTextFilter(borderColor)];
			}
			mouseEnabled = false;
			autoSize = TextFieldAutoSize.LEFT;
		}

		public function dispose():void
		{

		}
	}
}